<!-- ************************************************************************************************************ -->
<!-- fileName          : admin_adminpassword.jsp 																  -->																				  --> 

<!-- summary           : admin端  “修改密码” 相关编辑 															  		  -->																			      -->
<!-- ************************************************************************************************************ -->

<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ page import="java.sql.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>admin_adminpassword</title>
<script type="text/javascript" src="../../js/jquery.js"></script>
<script type="text/javascript" src="../../js/validator.js"></script>
<script type="text/javascript">
$.ajaxSetup ({
   	cache: false //关闭AJAX相应的缓存
});
</script>
<style type="text/css">
body{
background-image:url(../../image/admin_bg.png);
background-repeat:repeat-x;
margin-left: 0px;
margin-top: 0px;
margin-right: 1px;
margin-bottom: 0px;
font-family:Microsoft YaHei;
font-size:13px;
}

h2{
font-family:Microsoft YaHei;
color:#fff;
margin: 5px 5px 5px 5px;
font-size:16px;
}

</style>
</head>
<body>
<h2>编辑密码</h2>
	<div style="margin:10px auto; width:250px;">
		<form id="adminpasswordForm" method="post" action="UpdateAdminPassword.do">
		<table style="text-align:center;">
			<tr>
            	<td style="text-align:right;"><font>原密码：</font><input type="text" name="password" id="password"  onblur="checkPassword();" onClick="if(this.value=='请输入...')this.value=''" /></td>  
			</tr>
			<tr>
            	<td style="text-align:right;"><font>新密码：</font><input type="text" name="newpassword" id="newpassword"  onblur="checkNewPassword();" onClick="if(this.value=='请输入...')this.value=''" /></td>  
			</tr>
			<tr>
            	<td style="text-align:right;"><font>确认新密码：</font><input type="text" name="newpassword2" id="newpassword2" onblur="checkNewPassword2();" onClick="if(this.value=='请输入...')this.value=''" /></td>  
			</tr>
			<tr>
				<td><input type="button" value="保存修改" onclick="update_adminpassword(this.form);" /></td>
			</tr>	
		</table>
		</form>
	</div>
<%
	//设置请求的字符编码以支持中文
	request.setCharacterEncoding ("utf-8");

	//获取请求参数
	String result = request.getParameter("result");
	if(result!=null){out.println("<script>alert('密码修改成功!');</script>");}
	String error = request.getParameter("error");
	if(error!=null){out.println("<script>alert('原密码错误！操作失败！');</script>");}
%>

</body>
</html>